#ifndef DEPTMANAGER_H
#define DEPTMANAGER_H

#include "Entity/DictData.h"
#include <QObject>
#include <ui_index.h>
#include <Utils.h>
#include <api/systemManager/deptmanagerapi.h>

class DeptManager : public QObject
{
    Q_OBJECT
public:
    explicit DeptManager(Ui::Index *ui,QObject *parent = nullptr);

signals:

private:
    Ui::Index *ui;
    DeptManagerApi api;
    QList<DictData> sys_normal_disable;
    QList<Dept> deptList;
    bool isExpand;
    Utils utils;

    void init();
    void getType();
    void getList();
    void initTree();
    void setChildTree(QTreeWidgetItem *item);
};

#endif // DEPTMANAGER_H
